﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spider.DB
{
    /// <summary>
    /// 数据库持久化  统一规则类型
    /// </summary>
    public interface IDBs
    {
        /// <summary>
        /// 保存数据
        /// </summary>
        /// <typeparam name="T">保存数据的类型</typeparam>
        /// <param name="entity"></param>
        void Save<T>(T entity);


        /// <summary>
        /// 批量保存保存数据
        /// </summary>
        /// <typeparam name="T">保存数据的类型</typeparam>
        /// <param name="list"></param>
        void SaveList<T>(List<T> list);

    }



}
